package com.wps.data
{
	/**
	 * 	 表示某一个人的所有数据 
	 */	
	public class UserData
	{
		public var userName: String;
		public var days: Vector.<DayInfo>;
		public var tasks: Vector.<TaskInfo>;
		public var surplusTime: Number;
		
		public function UserData()
		{
			days = new Vector.<DayInfo>();
		}
		
		public function importFromXml(obj: Object = null): void
		{
//			surplusTime = 15;
//			days.length = 0;
//			for(var i: int = 0; i < ProjectManager.dayCount; i++)
//			{
//				var dayInfo: DayInfo = new DayInfo();
//				dayInfo.result = new DayResult(40 - i, 4* (35 + (Math.random() * 10) - i) );
//				days.push(dayInfo);
//			}
			
		}
	}
}